package suxinyi.rbac.domain.entity;

import suxinyi.rbac.domain.enums.RoleDataScope;

import java.time.LocalDateTime;

/**
 * 实体类-角色
 *
 * @author 苏心怡
 * @since 2025/6/5 08:47
 */

public class Role extends BaseEntity {

    /**
     * 角色名称
     */
    public String name;

    /**
     * 数据访问范围，只能是 [个人、部门、全局]
     */
    public RoleDataScope dataScope;

    public Role() {
    }

    public Role(Integer id, LocalDateTime createAt, LocalDateTime updateAt, String name, RoleDataScope dataScope) {
        super(id, createAt, updateAt);
        this.name = name;
        this.dataScope = dataScope;
    }
}
